<?php
//header("content-type:text/html; charset=gb2312");
require 'conn.php';
$trsno=trim(@$_POST["out_trade_no"]);
$email=trim(@$_POST["seller_email"]);
$partner=trim(@$_POST["partner"]);
$amount=trim(@$_POST["price"]);
$sign=trim(@$_POST["sign"]);
$conn=getconn();
$selectsql="select * from client2serverdata where trsno='".$trsno."'";
$result=mysql_query($selectsql);
if(mysql_num_rows($result)<=0){
	$sql="insert into client2serverdata(trsno,email,partner,amount,sign) 
	values('".$trsno."','".$email."','".$partner."','".$amount."','".$sign."')";
	mysql_query($sql);
}
mysql_close();

//$str=$trsno.$email.$partner.$amount.$sign
//file_put_contents('log.txt',$trsno,FILE_APPEND);
?>